<div id="fb-root"></div>
<script>(function(d, s, id) {
        var js, fjs = d.getElementsByTagName(s)[0];
        if (d.getElementById(id))
            return;
        js = d.createElement(s);
        js.id = id;
        js.src = "//connect.facebook.net/vi_VN/sdk.js#xfbml=1&appId=453496011462013&version=v2.0";
        fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));</script>
<section>
    <?php
    $linkcmtface = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
    ?>
    <div class="container">
        <div class="commentdetail">
            <div class="titlecategories">
                <h2><a href="#"><i class="fa fa-comments"></i> Bình luận</a></h2>
            </div>
            <div class="framecoment">
                <div class="fb-comments" data-href="<?php echo $linkcmtface; ?>" data-width="430" data-numposts="5" data-colorscheme="light"></div>
            </div>
        </div>
        <div class="advdetaildesktop">
            <div class="advdetailctdes">
                <?php
                $filename = str_replace("\\", "/", APPLICATION_PATH) . "/public/codeadv/detailvideos/detailadv01.txt";
                $advct = file_get_contents($filename, true);
                echo $advct;
                ?>
            </div>
            <div class="advdetailctdes">
                <?php
                $filename = str_replace("\\", "/", APPLICATION_PATH) . "/public/codeadv/detailvideos/detailadv01.txt";
                $advct = file_get_contents($filename, true);
                echo $advct;
                ?>
            </div>
        </div>
    </div>
</section>
<!--/comment-->

<section>
    <div class="container">

        <div class="titlecategories">
            <h2><a href="#"><i class="fa fa-bars"></i> Videos liên quan</a></h2>
        </div>
        <div class="catect">
            <?php
            if (count($videol) > 0) {
                foreach ($videol as $key => $listdata) {
                    $title = $listdata["videoName"];
                    $img = WEB_PATH . "/public/" . $listdata["videoImgThumb"];
                    $linkvideos = WEB_PATH . "/" . $listdata["catalogLink"] . "/" . $listdata["videoLink"] . ".html";
                    echo '<div class="videossub_cate">' .
                    '<a href="' . $linkvideos . '" title="' . $title . '"><img  class="img-responsive" src="' . $img . '" alt="' . $title . '"/></a>' .
                    '<div class="captitle">' .
                    '<a href="' . $linkvideos . '" title="' . $title . '">' . $title . '</a>' .
                    '</div>' .
                    '</div>';
                }
            }
            ?>
        </div>
    </div>
</section>